package com.example.teachingSystem.pojo.form.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "新增用户表")
public class AddUserForm {
    @Schema(description = "用户名（身份ID)")
    @NotNull(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码")
    @NotNull(message = "密码不能为空")
    private String password;

    @Schema(description="姓名")
    @NotNull(message = "姓名不能为空")
    private String name;

    @Schema(description="头像")
    private String avatar;

    @Schema(description="邮箱")
    private String email;

    @Schema(description="个性签名")
    private String sign;

    @Schema(description="性别")
    @NotNull(message = "性别不能为空")
    private Integer sex;
}
